package com.zhiyou.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.zhiyou.mapper.SystemMapper;
import com.zhiyou.model.System_A;
import com.zhiyou.service.SystemService;

@Service
public class SystemServiceImpl implements SystemService {

	@Autowired
	SystemMapper mapper;
	//查询所有
	@Override
	public List<Map<String, String>> select() {
		return mapper.select();
	}
	//添加消息
	@Override
	public void add(System_A system_A) {
		System.out.println(system_A);
		mapper.add(system_A);
	}

	
	//修改消息
	@Override
	public void update(System_A system_A) {
		mapper.update(system_A);
	}
	//删除消息
	@Override
	public void delete(Integer id) {
		mapper.delete(id);
		
	}

}
